package com.bbx.api.sdk.net.passeger.conn.pay;

import java.io.InputStream;

import android.content.Context;
import com.bbx.api.sdk.model.passanger.Return.pay.Pay;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.base.GeneralParser;
public class PayNet extends BaseNetwork {
	public PayNet(Context context, String datas) {
		super(context, false);
		setData(datas);
	}

	public PayNet(Context context) {
		super(context, false);
	}

	public void setData(String datas){
		super.setData(datas);
		url =PAY_Url;
		InputStream inputStream = getContentWithPOST((datas));
		if (inputStream != null) {
			parser = new GeneralParser(context, inputStream);
		}
	}

	@Override
	public Object getData() {
		// TODO Auto-generated method stub
		return parser.getData(Pay.class);
	}

}
